#!/bin/bash

addr=$1
port=$2
t="set,get"

redis-cli -h $addr -p $port info
bytes=(10 20 50 100 200 1000 2000 5000 10000)
for size in "${bytes[@]}"
do 
    echo "key size: ${size}"
    redis-benchmark -h $addr -p $port -t $t -d $size  -q
    sleep 5
done
